package {
	import component.container.ClippingContainerSample;
	
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import obecto.core.FLApplication;
	import obecto.event.FLEvent;

	[SWF(backgroundColor="0xCDCDCD")]
	public class ContainerSample extends FLApplication
	{
		private var container : ClippingContainerSample;
		
		public function ContainerSample()
		{
			super();
			
			stage.frameRate = 35;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			container = new ClippingContainerSample();
			container.addEventListener(FLEvent.CREATION_COMPLETE, handleContainerCreationComplete);
		}
		
		private function handleContainerCreationComplete(e : FLEvent) : void 
		{	
			addChild(container);
		}
		
	}
}
